def isInTemp(num):
    global temp
    for i in range(len(temp)):
        if temp[i] == num:
            return True
    return False


n = int(input())
arr = input().split(" ")
for i in range(len(arr)):
    arr[i] = int(arr[i])
temp = list()
for i in range(len(arr)):
    if not isInTemp(arr[i]):
        temp.append(arr[i])
for num in temp:
    print(num, end=" ")
